"use strict";
/** 
 * 由棱镜得到的
 * 断面中心到测量棱镜或全站仪的偏差(注意顺序),应实时更新
 */
module.exports = function (sequelize, DataTypes) {
    var CoorDiff = sequelize.define("CoorDiff", {
        name: {
            type: DataTypes.STRING,
            field: 'Name'
        },
        prjId: {
            type: DataTypes.INTEGER,
            field: 'PrjId',
        },
        deltaE: {
            type: DataTypes.DOUBLE,
            field: 'DeltaE'
        },
        deltaN: {
            type: DataTypes.DOUBLE,
            field: 'DeltaN'
        },
        deltaH: {
            type: DataTypes.DOUBLE,
            field: 'DeltaH'
        },
        id: {
            type: DataTypes.INTEGER,
            field: 'Id',
            autoIncrement: true,
            primaryKey: true
        }
    }, {
            freezeTableName: true,
            timestamps: false,
            classMethods: {

            }
        });

    return CoorDiff;
}